From 98bdc9321eb3cd841347e7380279a9ef68a14778 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Thu, 19 Dec 2013 08:16:30 -0500 Subject: [PATCH] GtkPlacesSidebar: avoid a crash Be more careful when comparing uris during DND - they may be NULL. https://bugzilla.gnome.org/show_bug.cgi?id=720264 --- gtk/gtkplacessidebar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkplacessidebar.c b/gtk/gtkplacessidebar.c index 675a756d9e..979700fb98 100644 --- a/gtk/gtkplacessidebar.c +++ b/gtk/gtkplacessidebar.c @@ -1415,7 +1415,7 @@ compute_drop_position (GtkTreeView *tree_view, PLACES_SIDEBAR_COLUMN_URI, &uri, -1); - if (strcmp (uri, "recent:///") == 0) + if (g_strcmp0 (uri, "recent:///") == 0) drop_possible = FALSE; g_free (uri); -- 2.30.2